package com.financing.wap.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.wap.dto.DstUserVisitLogDTO;
import com.financing.wap.vo.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.wap.dao.ICommonDstDao;
import com.financing.wap.dto.DstArticleDTO;
import com.financing.wap.dto.DstMemberInfoDTO;
import com.financing.wap.service.ICommonDstService;

/**
 * 
*
 */
@Service("commonDstService")
@Transactional(rollbackFor=Exception.class)
public class CommonDstServiceImpl extends BaseServiceImpl implements ICommonDstService {

	@Autowired
	private ICommonDstDao commonDstDao;

	@Override
	public List<DstUserInvitationVO> userInvitationList(String openid)
			throws SQLException {
		return commonDstDao.userInvitationList(openid);
	}

	@Override
	public int visitExecuteUpperLimit(Map<String, String> map) throws SQLException {
		return commonDstDao.visitExecuteUpperLimit(map);
	}

	@Override
	public List<DstUserGrowthModeVO> growthMode(String openid) throws SQLException {
		return commonDstDao.growthMode(openid);
	}

	@Override
	public void updateMemberInfo(DstMemberInfoDTO member) throws SQLException {
		commonDstDao.updateMemberInfo(member);
	}

	@Override
	public int shareArticleExecuteUpperLimit(Map<String, String> map) throws SQLException {
		return commonDstDao.shareArticleExecuteUpperLimit(map);
	}

	@Override
	public List<DstUserTagListVO> queryTagByUser(DstUserTagListVO vo)
			throws SQLException {
		return commonDstDao.queryTagByUser(vo);
	}

	@Override
	public List<ArticleInfoVO> topSearch(ArticleInfoVO vo) throws SQLException {
		return commonDstDao.topSearch(vo);
	}

	@Override
	public Map<String, Object> visitCountByClientOpenid(DstUserTagListVO vo)
			throws SQLException {
		return commonDstDao.visitCountByClientOpenid(vo);
	}

	@Override
	public List<ArticleInfoVO> queryArticleForUser(DstArticleDTO dto)
			throws SQLException {
		return commonDstDao.queryArticleForUser(dto);
	}

	@Override
	public List<DstUserVisitVO> dstUserVisitList(DstUserVisitVO dstUserVisitVO) throws SQLException {
		return commonDstDao.dstUserVisitList(dstUserVisitVO);
	}

	@Override
	public List<DstUserVisitLogVO> customerUserVisitLog(DstUserVisitLogDTO dstUserVisitLog) {
		return commonDstDao.customerUserVisitLog(dstUserVisitLog);
	}

	@Override
	public List<CacheUserInfoVO> cacheUserInfo(Map cacheObject) {
		return commonDstDao.cacheUserInfo(cacheObject);
	}


}
